package io.github.wslxm.springbootplus2.manage.sys.model.dto;


import io.github.wslxm.springbootplus2.core.base.model.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 *  DTO
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>

 * @author ws
 * @email 1720696548@qq.com
 * @date 2023-03-24 10:04:20
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysAddressDTO 对象", description = "")
public class SysAddressDTO extends BaseDto {

    private static final long serialVersionUID = -1639085709644767232L;
    
    @Schema(title = "父级挂接id" )
    @NotBlank(message = "sys.address.pid.NotBlank")
    @Length(min=0, max=32,message = "sys.address.pid.Length")
    private String pid;

    @Schema(title = "区划名称" )
    @NotBlank(message = "sys.address.name.NotBlank")
    @Length(min=0, max=32,message = "sys.address.name.Length")
    private String name;

    @Schema(title = "区划编码" )
    @Length(min=0, max=32,message = "sys.address.code.Length")
    private String code;

    @Schema(title = "备注" )
    @Length(min=0, max=64,message = "sys.address.remark.Length")
    private String remark;

    @Schema(title = "级次id 0:省/自治区/直辖市 1:市级 2:县级" )
    @NotNull(message = "sys.address.level.NotNull")
    @Range(min=0, max=9L,message = "sys.address.level.Range")
    private Integer level;

}

